﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" MasterPageFile="~/MasterPage.master"
    Inherits="UserDeviceInfo_Item" CodeFile="UserDeviceInfo_Item.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>设备信息</title>
    <link href="../resources/styles/style.css" type="text/css" rel="stylesheet">
    <script src="../JavaScript/common.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div>
        <asp:UpdatePanel runat="server" ID="UpdatePanel1">
            <ContentTemplate>
                <table id="wsd_inputtable">
                    <tr>
                        <td colspan="3" class="tabletitle">
                            <font color="red" size="2"><b>提示:*为必填项</b></font>
                        </td>
                    </tr>
                    <tr>
                        <td class="tablefield" style="width: 30%; height: 30px;">
                            <span class="keyword">*</span>IMEICode:
                        </td>
                        <td class="style1">
                            <asp:TextBox ID="txtImei" runat="server" MaxLength="19" class="default"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请填写设备IMEICode"
                                ControlToValidate="txtImei"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="tablefield" style="width: 30%">
                            品牌:
                        </td>
                        <td nowrap="nowrap" class="style2">
                            <asp:TextBox ID="txtBrandName" runat="server" class="default"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tablefield" style="width: 30%">
                            型号:
                        </td>
                        <td class="style2" nowrap="nowrap">
                            <asp:TextBox ID="txtModel" runat="server" class="default"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tablefield">
                            设备有效性:
                        </td>
                        <td nowrap="nowrap">
                            <asp:CheckBox ID="chb_DeviceActive" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="tablefield">
                            是否绑定账户:
                        </td>
                        <td nowrap="nowrap">
                            <asp:CheckBox ID="chb_IsBound" runat="server" OnCheckedChanged="chb_IsBound_CheckedChanged"
                                AutoPostBack="true" />
                        </td>
                    </tr>
                    <tr runat="server" id="tr_bound1" visible="false">
                        <td class="tablefield" style="width: 30%">
                             <span class="keyword">*</span>绑定账户:
                        </td>
                        <td class="style2" nowrap="nowrap">
                            <asp:DropDownList ID="ddlUsers" runat="server" AutoPostBack="True" Width="150">
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请选择人员"
                                ControlToValidate="ddlUsers"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr runat="server" id="tr_bound2" visible="false">
                        <td class="tablefield">
                            设备帐号绑定有效性:
                        </td>
                        <td nowrap="nowrap">
                            <asp:CheckBox ID="chb_DeviceBoundActive" runat="server" />
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <br />
                <table id="wsd_inputtable">
                    <tr>
                        <td width="100%" class="tabletitle">
                            操作选项
                        </td>
                    </tr>
                    <tr>
                        <td class="buttonarea">
                            <asp:Button ID="btnSave" runat="server" class="wsd_button2" Text="提  交" OnClick="btnSave_Click" />&nbsp;&nbsp;
                            <input class="wsd_button2" id="Button15" onclick="location.href='UserDeviceInfo_List.aspx'"
                                value="返   回" name="Button2" type="button">
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
